<div>
    <div class="flex justify-start">
        <div class=" bg-white text-center border-radius wo-left">
            <div class="wo-title">核销台</div>
            <div class="wo-img">
                <img src="/img/writeoff_icon.png" />
            </div>
            <div class="wo-remark">请扫描核销二维码或输入核销码</div>
            <div class="wo-input">
                <input type="text" placeholder="请输入核销码" class=" form-control" v-model="orderWriteOffConfirmInfo.woNum"
                    @keyup.enter="_confirmWriteOffOrder()">
            </div>
            <div class="wo-submit">
                <button type="button" class="btn btn-primary " v-on:click="_confirmWriteOffOrder()">
                    <vc:i18n name="核销"></vc:i18n>
                </button>
            </div>
        </div>
        <div class="wo-right">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="查询条件"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入用户名称','orderWriteOffConfirm')"
                                    v-model="orderWriteOffConfirmInfo.conditions.personName" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入核销单号','orderWriteOffConfirm')"
                                    v-model="orderWriteOffConfirmInfo.conditions.woNum" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-sm"
                                v-on:click="_queryOrderWriteOffConfirmMethod()">
                                <vc:i18n name="查询"></vc:i18n>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="ibox">
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">
                                    <vc:i18n name="订单编号" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="商品名称" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="数量" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="商品状态" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="用户名称" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="支付金额" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="核销单号" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="手机后四位" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="核销状态" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="核销时间" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="说明" namespace="orderWriteOffConfirm"></vc:i18n>
                                </th>
                                <th class="text-center">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="(order,index) in orderWriteOffConfirmInfo.orders">
                                <td class="text-center">{{order.orderId}}</td>
                                <td class="text-center">
                                    <div v-for="(cart,cIndex) in order.carts" :key="cIndex">{{cart.prodName}}</div>
                                </td>
                                <td class="text-center">
                                    <div v-for="(cart,cIndex) in order.carts" :key="cIndex">x {{cart.cartNum}}</div>
                                </td>
                                <td class="text-center">
                                    <div v-for="(cart,cIndex) in order.carts" :key="cIndex">{{cart.stateName}}</div>
                                </td>
                                <td class="text-center">{{order.personName}}</td>
                                <td class="text-center">{{order.payPrice}}</td>
                                <td class="text-center">{{order.woNum}}</td>
                                <td class="text-center">
                                    {{order.linkNum}}
                                </td>
                                <td class="text-center">
                                    {{order.state == '02'?'到店核销':'核销完成'}}
                                </td>
                                <td class="text-center">
                                    {{order.createTime}}
                                </td>
                                <td class="text-center">
                                    {{order.remark}}
                                </td>
                                <td class="text-center">
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs" v-on:click="_openOrderDetailModel(order)">订单详情
                                        </button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
</div>